﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.Entity
{
    /// <summary>
    /// 检验批项目实体.
    /// </summary>
    [SugarTable("qms_busi_inspectionitem", "检验批项目")]
    [Tenant(ClaimConst.TENANTID)]
    public class QmsBusiInspectionitemEntity:CLDEntityBase
    {

        /// <summary>
        /// 检验批号.
        /// </summary>
        [SugarColumn(ColumnName = "F_Code", ColumnDescription = "检验批号")]
        public string Code { get; set; }

        /// <summary>
        /// 状态：OK\NG.
        /// </summary>
        [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态：OK/NG")]
        public string Status { get; set; }

        /// <summary>
        /// 类型：定量、定性.
        /// </summary>
        [SugarColumn(ColumnName = "F_Type", ColumnDescription = "类型：定量、定性")]
        public string Type { get; set; }

        /// <summary>
        /// 抽样表ID.
        /// </summary>
        [SugarColumn(ColumnName = "F_SampleId", ColumnDescription = "抽样表ID")]
        public string SampleId { get; set; }

        /// <summary>
        /// 抽检类型(字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置）.
        /// </summary>
        [SugarColumn(ColumnName = "F_SamplingType", ColumnDescription = "抽检类型(字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置）")]
        public string SamplingType { get; set; }

        /// <summary>
        /// 抽检类型(字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置）.
        /// </summary>
        [SugarColumn(ColumnName = "F_SamplingTypeDes", ColumnDescription = "抽检类型(字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置）")]
        public string SamplingTypeDes { get; set; }

        /// <summary>
        /// 抽样数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_SamplingQty", ColumnDescription = "抽样数量")]
        public int? SamplingQty { get; set; }

        /// <summary>
        /// 检验项目.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionCode", ColumnDescription = "检验项目")]
        public string InnspectionCode { get; set; }

        /// <summary>
        /// 检验条⽬.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionEntry", ColumnDescription = "检验条⽬")]
        public string InnspectionEntry { get; set; }

        /// <summary>
        /// 检验⽅法.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionMethod", ColumnDescription = "检验⽅法")]
        public string InnspectionMethod { get; set; }

        /// <summary>
        /// 检验项目名称.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionName", ColumnDescription = "检验项目名称")]
        public string InnspectionName { get; set; }

        /// <summary>
        /// 检验条⽬名称.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionEntryName", ColumnDescription = "检验条⽬名称")]
        public string InnspectionEntryName { get; set; }

        /// <summary>
        /// 检验⽅法名称.
        /// </summary>
        [SugarColumn(ColumnName = "F_InnspectionMethodName", ColumnDescription = "检验⽅法名称")]
        public string InnspectionMethodName { get; set; }

        /// <summary>
        /// 定量标准：区间，⽐较符，允公差 更多：可添加公式.
        /// </summary>
        [SugarColumn(ColumnName = "F_QuantitativeStandards", ColumnDescription = "定量标准：区间，⽐较符，允公差 更多：可添加公式")]
        public string QuantitativeStandards { get; set; }

        /// <summary>
        /// 标准值.
        /// </summary>
        [SugarColumn(ColumnName = "F_StandardValue", ColumnDescription = "标准值")]
        public decimal StandardValue { get; set; }

        /// <summary>
        /// 上偏差.
        /// </summary>
        [SugarColumn(ColumnName = "F_UpperDeviation", ColumnDescription = "上偏差")]
        public decimal UpperDeviation { get; set; }

        /// <summary>
        /// 下偏差.
        /// </summary>
        [SugarColumn(ColumnName = "F_LowerDeviation", ColumnDescription = "下偏差")]
        public decimal LowerDeviation { get; set; }

        /// <summary>
        /// 最大值.
        /// </summary>
        [SugarColumn(ColumnName = "F_MaximumValue", ColumnDescription = "最大值")]
        public decimal MaximumValue { get; set; }

        /// <summary>
        /// 最小值.
        /// </summary>
        [SugarColumn(ColumnName = "F_MinimumValue", ColumnDescription = "最小值")]
        public decimal MinimumValue { get; set; }

        /// <summary>
        /// 计量单位，选择，⾮⼿⼯输⼊.
        /// </summary>
        [SugarColumn(ColumnName = "F_Unit", ColumnDescription = "计量单位，选择，⾮⼿⼯输⼊")]
        public string Unit { get; set; }

        /// <summary>
        /// ⼩数位数.
        /// </summary>
        [SugarColumn(ColumnName = "F_Accuracy", ColumnDescription = "⼩数位数")]
        public int? Accuracy { get; set; }

        /// <summary>
        /// 附件文件名称.
        /// </summary>
        [SugarColumn(ColumnName = "F_FileInfo", ColumnDescription = "附件文件名称")]
        public object FileInfo { get; set; }

        /// <summary>
        /// 接收数.
        /// </summary>
        [SugarColumn(ColumnName = "F_ReceivedQty", ColumnDescription = "接收数")]
        public int? ReceivedQty { get; set; }

        /// <summary>
        /// 拒收数.
        /// </summary>
        [SugarColumn(ColumnName = "F_RejectionQty", ColumnDescription = "拒收数")]
        public int? RejectionQty { get; set; }

        /// <summary>
        /// 备注.
        /// </summary>
        [SugarColumn(ColumnName = "F_Remarks", ColumnDescription = "备注")]
        public string Remarks { get; set; }

        /// <summary>
        /// N未开启 Y 开启，则此检验项⽬⽆需有合格判定，仅⽤于做记录后续⽣成的对外检验报告也不参与⽣成在具体检验上做个特殊标识，可以⼀眼就看出来.
        /// </summary>
        [SugarColumn(ColumnName = "F_ReferTo", ColumnDescription = "是否合格判定")]
        public string ReferTo { get; set; }

        /// <summary>
        /// N未开启 Y开启.
        /// </summary>
        [SugarColumn(ColumnName = "F_Destructiveness", ColumnDescription = "N未开启 Y开启")]
        public string Destructiveness { get; set; }

        /// <summary>
        /// 破坏性数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_DestructivenessQty", ColumnDescription = "破坏性数量")]
        public int? DestructivenessQty { get; set; }

        /// <summary>
        /// 排序.
        /// </summary>
        [SugarColumn(ColumnName = "F_Sort", ColumnDescription = "排序")]
        public int? Sort { get; set; }

        /// <summary>
        /// 父ID.
        /// </summary>
        [SugarColumn(ColumnName = "F_Volt", ColumnDescription = "父ID")]
        public string Volt { get; set; }

        /// <summary>
        /// 类型：主检验，子检验.
        /// </summary>
        [SugarColumn(ColumnName = "F_VType", ColumnDescription = "类型：主检验，子检验")]
        public string VType { get; set; }

        /// <summary>
        /// 公式.
        /// </summary>
        [SugarColumn(ColumnName = "F_Formula", ColumnDescription = "公式")]
        public string Formula { get; set; }

        /// <summary>
        /// 参数.
        /// </summary>
        [SugarColumn(ColumnName = "F_Parameter", ColumnDescription = "参数")]
        public object Parameter { get; set; }

        /// <summary>
        /// N否 Y是.
        /// </summary>
        [SugarColumn(ColumnName = "F_Exempt", ColumnDescription = "N否 Y是")]
        public string Exempt { get; set; }

        /// <summary>
        /// N否 Y是.
        /// </summary>
        [SugarColumn(ColumnName = "F_AutoFlag", ColumnDescription = "N否 Y是")]
        public string AutoFlag { get; set; }


    }
}
